<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
	if(isset($_COOKIE['studialuserid']))
	{
		header ('location: ../users/homeboard.php?id='.$_COOKIE['studialuserid']);
	}
?>
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<script type="text/javascript" language="javascript" src="../javascript/forms.js"></script>
<link rel="stylesheet" type="text/css" href="../css/global.css" />
<link rel="stylesheet" type="text/css" href="../css/forms.css" />
<style type="text/css">
	.header	{ height: 90px; }
		
	.logo {
		width: 200px;
		margin-top: 14px;
	}
	
	#logtable	{
		float: right;
		margin-top: 14px;
	}
	
	#logtable td.textcol {
		width: 155px;
		vertical-align: text-top;
		padding-top: 0;
		padding-bottom: 0;
	}
		 
	.headlabel, .sublabel { font-size: 11px; }
	
	.headlabel { color: #ffffff; }
	
	.sublabel {
		color: #96c690;
		vertical-align: top;
	}
	
	.loginput	{
		width: 140px;
		padding: 4px;
		border: 1px solid #105109;
	}
	
	.logcheck { margin-top: 0; }
</style>
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>

<body>
    <div class="header">
        <div class="innercontent">
            <a href="../unlogged/index.php"><img alt="Studial" class="logo" src="../images/logo.jpg" /></a>
            <form id="logform" method="post" action="../unlogged/login.php">
                <table id="logtable">
                    <tr>
                        <td class="textcol"><label class="headlabel" for="username">Tên đăng nhập hoặc email</label></td>
                        <td class="textcol"><label class="headlabel" for="password">Mật khẩu</label></td>
                        <td class="submitcol"></td>
                    </tr>
                    <tr>
                        <td class="textcol"><input class="loginput" name="username" type="text" value="" /></td>
                        <td class="textcol"><input class="loginput" name="password" type="password" value="" /></td>
                        <td class="submitcol"><button class="logbutton" name="login" type="submit" value="1">Đăng nhập</button></td>
                    </tr>
                    <tr>
                        <td class="textcol"><input class="logcheck" name="logcheck" type="checkbox" /><label class="sublabel" for="logcheck">Duy trì đăng nhập</label></td>
                        <td class="textcol"><a class="sublabel" href="../unlogged/identify.php">Quên mật khẩu?</a></td>
                        <td class="submitcol"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <!-- TemplateBeginEditable name="maincontent" --><!-- TemplateEndEditable -->
    <div class="footer">
        	Studial @ 2012 - Nhóm 01
    </div>      
</body>
</html>
